package com.huatai.datacenter.entity.datamodel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @author gusiyi
 * @version 1.0
 * @className DataModelFieldEntity
 * @description 描述：
 * @date 2023/5/26 9:36
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_data_model_field")
@ApiModel(value = "数据模型字段实体类",description = "数据模型字段实体类")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DataModelFieldEntity extends DataModelBaseEntity{

	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "字段id",required = true)
	@NotNull(message = "修改时字段id必传")
	private Long id;

	@ApiModelProperty(value = "数据模型id",required = true)
	private Long dataModelId;

	@ApiModelProperty(value = "字段名称",required = true)
	private String fieldName;

	@ApiModelProperty("字段中文名称")
	private String fieldCnName;

	@ApiModelProperty(value = "字段类型编码",required = true)
	private Integer fieldTypeNum;

	@ApiModelProperty(value = "字段类型",required = true)
	private String fieldType;

	@ApiModelProperty("备注/描述")
	private String remark;


}
